<template>
	<view class="userInfo">
		<u-tabs :list="list" :is-scroll="false" :current="current" @change="change" 
		active-color="#009688"
		inactive-color="#AAAAAA"
		:bold="false"></u-tabs>
		<view class="" v-show="current == 0">
			<user-info></user-info>
		</view>
		<view class="" v-show="current == 1">
			<position-info :lst-data="positionInfo"></position-info>
		</view>
	</view>
</template>

<script>
import positionInfo from './positionInfo.vue'
import userInfo from './userInfo.vue'
export default {
	name: '',
	components: {
		positionInfo,
		userInfo
	},
	data() {
		return {
			list: [{
				name: '个人信息'
			}, {
				name: '岗位信息'
			}],
			current:0,
			positionInfo:[{
				label:'入职时间',
				txt:'2020-06-01'
			},{
				label:'部门',
				txt:'高通量计算中心'
			},{
				label:'工作邮箱',
				txt:'qianduan@ictnj.ac.cn'
			},{
				label:'岗位',
				txt:'WEB前端开发'
			},{
				label:'工号',
				txt:'000151'
			},{
				label:'聘用形式',
				txt:'正式'
			},{
				label:'转正日期',
				txt:'2020-12-01'
			},{
				label:'职务级别',
				txt:'高级工程师'
			},{
				label:'纳税城市',
				txt:'南京'
			},{
				label:'合同开始',
				txt:'2020-6-1'
			},{
				label:'合同结束',
				txt:'2020-12-1'
			}]
		}
	},
	methods: {
		change(index) {
			this.current = index;
		}
	},
	onReady(){
	    
	},
};
</script>

<style scoped lang="scss">

</style>
